//
//  YZCNewsScorllView.m
//  LOLerBox
//
//  Created by 杨智超 on 16/1/16.
//  Copyright © 2016年 蓝鸥科技. All rights reserved.
//

#import "YZCNewsScorllView.h"


@interface YZCNewsScorllView ()<UIScrollViewDelegate>
@property (nonatomic, retain)UIScrollView *scrollView;

@end





@implementation YZCNewsScorllView


+ (instancetype)scrollViewWithInteger:(NSInteger)integer view:(CGRect)viewFrame {
    YZCNewsScorllView *news = [[YZCNewsScorllView alloc]initWithFrame:CGRectMake(0, 0, 375, 50)];
    [news ScrollViewWithInteger:integer view:viewFrame];
    return [news autorelease];
    
}

- (void)ScrollViewWithInteger:(NSInteger)integer view:(CGRect)viewFrame {
    self.scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, 375, 50)];
    self.scrollView.backgroundColor = [UIColor blackColor];
    self.scrollView.contentSize = CGSizeMake(375 / integer, 49);
    [self addSubview:self.scrollView];
    [_scrollView release];
    
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 49, 375 / integer, 1)];
    view.backgroundColor = [UIColor blueColor];
    [self.scrollView addSubview:view];
    [view release];
    
    
    
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
